#include <windows.h>

#include "CChar.h"
#include "CEventMorePacket.h"

CEventMorePacket::CEventMorePacket() {

	this->type		=	0x5C;
	this->size		=	0x12;

	numOfParams = 0;

	memset(data, 0, sizeof(data));
	memset(m_param, 0, sizeof(m_param));

}

void CEventMorePacket::createPacket(CChar * schar) {

	if(this->numOfParams > 0) {

		for (unsigned char i = 0; i < numOfParams; i++) {
			unsigned long param = 0;
			param = m_param[i];
			memcpy(data+0x04-0x04+(i * 0x04),&param,4);
		}
	}

	schar->quePacket(*this);
}
	
CEventMorePacket::~CEventMorePacket(void) {

}